const { find } = require('./car')

const Imgthum = require('../../db').Imgthum

module.exports = {
    async find(ctx,next){
        let id = ctx.params.imgid

        try{
            let thuminfo = await Imgthum.find({"imgid":id},null)

            ctx.body = {
                code: 200,
                msg: 'success',
                list: thuminfo
            }
        } catch(e){
            ctx.body = {
                code: 500,
                msg: 'error'
            }
        }
    }
}